package com.sitech.portal.server.service.impl;

import java.util.HashMap;

import com.sitech.ibnms.core.IPage;
import com.sitech.ibnms.core.PageForm;
import com.sitech.portal.server.dao.IMessageSettingDao;
import com.sitech.portal.server.domain.MessageSetting;
import com.sitech.portal.server.form.MessageSettingForm;
import com.sitech.portal.server.service.IMessageSettingService;

public class MessageSettingServiceImpl implements IMessageSettingService {

	IMessageSettingDao msgSettingDao;
	
	@Override
	public MessageSettingForm queryMessageSettingByLoginId(String loginId) {
		MessageSetting settinBean = msgSettingDao.queryMessageSettingByLoginId(loginId);
		return new MessageSettingForm(settinBean);
	}

	@Override
	public void saveMessageSetting(MessageSettingForm form) {
		MessageSetting settingBean = new MessageSetting(form);
		msgSettingDao.saveMessageSetting(settingBean);
	}

	@Override
	public void updateMessageSetting(MessageSettingForm form) {
		MessageSetting settingBean = new MessageSetting(form);
		msgSettingDao.updateMessageSetting(settingBean);

	}

	public IMessageSettingDao getMsgSettingDao() {
		return msgSettingDao;
	}

	public void setMsgSettingDao(IMessageSettingDao msgSettingDao) {
		this.msgSettingDao = msgSettingDao;
	}

	@Override
	public IPage findMsgHisList(HashMap map ,PageForm pageForm) {
		// TODO Auto-generated method stub
		
		return msgSettingDao.findMsgHisList(map, pageForm);
	}

	
}
